Optimal. Leaf size=119 \[ -\frac {(2-2 i) a^{3/2} \tanh ^{-1}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}-\frac {2 (a+i a \tan (c+d x))^{3/2}}{3 d \tan ^{\frac {3}{2}}(c+d x)}-\frac {2 i a \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\tan (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.22, antiderivative size = 119, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3548, 3545, 3544, 205} \[ -\frac {(2-2 i) a^{3/2} \tanh ^{-1}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}-\frac {2 (a+i a \tan (c+d x))^{3/2}}{3 d \tan ^{\frac {3}{2}}(c+d x)}-\frac {2 i a \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\tan (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 3544
Rule 3545
Rule 3548
Rubi steps
\begin {align*} \int \frac {(a+i a \tan (c+d x))^{3/2}}{\tan ^{\frac {5}{2}}(c+d x)} \, dx &=-\frac {2 (a+i a \tan (c+d x))^{3/2}}{3 d \tan ^{\frac {3}{2}}(c+d x)}+i \int \frac {(a+i a \tan (c+d x))^{3/2}}{\tan ^{\frac {3}{2}}(c+d x)} \, dx\\ &=-\frac {2 i a \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\tan (c+d x)}}-\frac {2 (a+i a \tan (c+d x))^{3/2}}{3 d \tan ^{\frac {3}{2}}(c+d x)}-(2 a) \int \frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {\tan (c+d x)}} \, dx\\ &=-\frac {2 i a \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\tan (c+d x)}}-\frac {2 (a+i a \tan (c+d x))^{3/2}}{3 d \tan ^{\frac {3}{2}}(c+d x)}+\frac {\left (4 i a^3\right ) \operatorname {Subst}\left (\int \frac {1}{-i a-2 a^2 x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}\\ &=-\frac {(2-2 i) a^{3/2} \tanh ^{-1}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}-\frac {2 i a \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\tan (c+d x)}}-\frac {2 (a+i a \tan (c+d x))^{3/2}}{3 d \tan ^{\frac {3}{2}}(c+d x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.75, size = 160, normalized size = 1.34 \[ -\frac {2 i \sqrt {2} a e^{-i (c+d x)} \sqrt {\frac {a e^{2 i (c+d x)}}{1+e^{2 i (c+d x)}}} \left (e^{i (c+d x)} \left (-3+5 e^{2 i (c+d x)}\right )-3 \left (-1+e^{2 i (c+d x)}\right )^{3/2} \tanh ^{-1}\left (\frac {e^{i (c+d x)}}{\sqrt {-1+e^{2 i (c+d x)}}}\right )\right )}{3 d \left (-1+e^{2 i (c+d x)}\right ) \sqrt {\tan (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.64, size = 395, normalized size = 3.32 \[ \frac {4 \, \sqrt {2} {\left (5 \, a e^{\left (5 i \, d x + 5 i \, c\right )} + 2 \, a e^{\left (3 i \, d x + 3 i \, c\right )} - 3 \, a e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {-i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} - 3 \, {\left (d e^{\left (4 i \, d x + 4 i \, c\right )} - 2 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt {-\frac {8 i \, a^{3}}{d^{2}}} \log \left (\frac {{\left (2 \, \sqrt {2} {\left (a e^{\left (2 i \, d x + 2 i \, c\right )} + a\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {-i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} + \sqrt {-\frac {8 i \, a^{3}}{d^{2}}} d e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}}{2 \, a}\right ) + 3 \, {\left (d e^{\left (4 i \, d x + 4 i \, c\right )} - 2 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt {-\frac {8 i \, a^{3}}{d^{2}}} \log \left (\frac {{\left (2 \, \sqrt {2} {\left (a e^{\left (2 i \, d x + 2 i \, c\right )} + a\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {-i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} - \sqrt {-\frac {8 i \, a^{3}}{d^{2}}} d e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}}{2 \, a}\right )}{6 \, {\left (d e^{\left (4 i \, d x + 4 i \, c\right )} - 2 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}}}{\tan \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.22, size = 370, normalized size = 3.11 \[ -\frac {\sqrt {a \left (1+i \tan \left (d x +c \right )\right )}\, a \left (3 i \sqrt {i a}\, \sqrt {2}\, \ln \left (-\frac {-2 \sqrt {2}\, \sqrt {-i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}+i a -3 a \tan \left (d x +c \right )}{\tan \left (d x +c \right )+i}\right ) \left (\tan ^{2}\left (d x +c \right )\right ) a +12 i \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) \sqrt {-i a}\, \left (\tan ^{2}\left (d x +c \right )\right ) a -3 \sqrt {i a}\, \sqrt {2}\, \ln \left (-\frac {-2 \sqrt {2}\, \sqrt {-i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}+i a -3 a \tan \left (d x +c \right )}{\tan \left (d x +c \right )+i}\right ) \left (\tan ^{2}\left (d x +c \right )\right ) a +16 i \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}\, \sqrt {-i a}\, \tan \left (d x +c \right )+4 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}\, \sqrt {-i a}\right )}{6 d \tan \left (d x +c \right )^{\frac {3}{2}} \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}\, \sqrt {-i a}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.68, size = 1002, normalized size = 8.42 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{3/2}}{{\mathrm {tan}\left (c+d\,x\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{\frac {3}{2}}}{\tan ^{\frac {5}{2}}{\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________